#include "../include/mytest.h"
#include "../include/mystring.h"

const int test_time = 1000;

int main(void)
{
    char buf[64];
    RAND_INIT
    for(int i = 0; i < test_time; i++)
    {
        generate_one_string(buf);
        // fprintf(stdout, "buf = %s\n", buf);
        if(strlen(buf) != _strlen(buf))
        {
            fprintf(stderr, "buf = %s ", buf);
            fprintf(stderr, T_R("FAIL!\n"));
            assert(0);
        }
    }
    printf(T_G("ALL PASS!\n"));
    return 0;
}
